//
// Created by hkkzzxz on 24-9-7.
//

#ifndef YUNSHI_SENDHTTP_H
#define YUNSHI_SENDHTTP_H

// 发送Http请求类

#include "HttpConnection.h"

class SendHttp {
public:
    // 发送POST请求
    http::response<http::dynamic_body> sendRequest(http::request<http::dynamic_body> &httpRequest);

private:
    std::string host = "127.0.0.1";
    std::string port = "8888";

    LogManager *logManager = LogManager::getInstance();
    std::shared_ptr<spdlog::logger> consoleLogger = logManager->getConsoleLogger();
    std::shared_ptr<spdlog::logger> fileLogger = logManager->getFileLogger();
};


#endif //YUNSHI_SENDHTTP_H
